package com.hqx.order.master.feign;

import com.hqx.cloud.output.dto.User;
import com.hqx.order.master.feign.fallback.UserFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "user-service",fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeign {

    @RequestMapping(value = "/getUser",method = RequestMethod.GET)
    User getUser();

    @RequestMapping(value = "/getString",method = RequestMethod.GET)
    String getString();
}
